<extend name="Public/base"/>

<!-- 子导航 -->
<block name="sidebar">
    <include file="sidemenu" />
</block>


<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<!-- <div id="main-content" style="">
<div class="main" id="main" style="">  -->
  
  <!-- nav --> 
  
  <!-- nav --> 
  
  <!-- 数据列表 -->
  
  <div class="data-table" style="">
    <div class="data-table table-striped" style="">
      <div class="picmsg" style="">
        
        
        <div class="yz_left width480 fromblock">
           <form   action="{:U('goodsitem')}" class="form-horizontal" method="post" style="">
           	
           	
           	
        <div class="form_itme">
        	
              <label class="form_label yz_clear">
              <strong class="title yz_left">所属类别</strong>
              <p class="tips yz_left">（必填）</p>
              </label>
              <span style="display:block" class="counter_in yz_clear">
              <select id="cat_id" name="cat_id">
              	 <volist name="catlist" id="cat">
                  
                    <option value="{$cat['id']}"> 
                     {$cat['cat_name']}
                  </option>
                </volist>
                </select>
              </span> </div>
              
              
              
              <div class="form_itme">
              <label class="form_label yz_clear">
              <strong class="title yz_left">所属商家</strong>
              <p class="tips yz_left">（必填）</p>
              </label>
              <span style="display:block" class="counter_in yz_clear">
              <select id="shop_id" name="shop_id">
              	
              	<volist name="shoplist" id="shoplist">
                  
                    <option value="{$shoplist['id']}"> 
                     {$shoplist['shopname']}
                  </option>
                </volist>
                                     </select>
              </span> </div>
              
              
                <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">标题</strong>
              <p class="tips yz_left">（必填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" name="good_name" id="good_name" class="form_input limited">
              <em class="form_input_append frm_counter">64/64</em> </span> </div>
           
           
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">产品特点</strong>
           
              </label>
           <!--    <div class=" counter_in yz_clear"> 
              <div class="icheckbox_minimal checked" style="position: relative;">
              <input type="checkbox" checked="" value="" name="istop" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;">
              </ins></div> 热门 <div class="icheckbox_minimal checked" style="position: relative;"><input type="checkbox" checked="" value="" name="isrecommend" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;"></ins></div> 推荐 <div class="icheckbox_minimal checked" style="position: relative;"><input type="checkbox" checked="" value="" name="isspecial" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;"><ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255) none repeat scroll 0% 0%; border: 0px none; opacity: 0;"></ins></div> 特别推荐 
              </div> -->
              <div class=" counter_in yz_clear"> 
             
                
                <input type="radio" name="feature" value="0"  checked="checked" >普通商品
				<input type="radio" name="feature" value="1">热销
				<input type="radio" name="feature" value="2">新品
				<input type="radio" name="feature" value="3">推荐
            </div>
            </div>
           
              
               <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">是否可邮</strong>
              <p class="tips yz_left">（选填）</p>
              </label>
             <div class=" counter_in yz_clear"> 
             	
        
             
                <input type="radio" name="is_mail" value="0"  checked="checked" >不可邮
				<input type="radio" name="is_mail" value="1">可邮
				
                
                </div>
              
              
               </div>
          
            
          
           <!--  <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">商家咨询电话</strong>
              <p class="tips yz_left">（填写咨询电话，前台可以通过打电话联系商家）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="phone" name="phone" class="form_input limited">
              <em class="form_input_append frm_counter">11/11</em> </span> </div>
              <div class="form_itme">

              <label class="form_label">

              <strong class="title yz_left">商家联系邮箱</strong>

              <p class="tips yz_left">（填写联系邮箱，订单会以邮件形式发送）</p>

              </label>

              <span class="form_input_box counter_in yz_clear">

              <input type="text" value="" id="email" name="email" class="form_input limited">

              <em class="form_input_append frm_counter">11/11</em> </span> </div> -->
           <!--  <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">商品单位</strong>
              <p class="tips yz_left">（必填，例如0.5斤表示0.5斤对应的价格）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="unity" name="unity" class="form_input limited">
              <em class="form_input_append frm_counter">8/8</em> </span> </div>
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">采购价格</strong>
              <p class="tips yz_left">（必填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="price0" name="price0" class="form_input limited">
              <em class="form_input_append frm_counter">8/8</em> </span> </div>
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">本店价格</strong>
              <p class="tips yz_left">（必填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="price" name="price" class="form_input limited">
              <em class="form_input_append frm_counter">8/8</em> </span> </div>
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">市场价格</strong>
              <p class="tips yz_left">（选填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="price1" name="price1" class="form_input limited">
              <em class="form_input_append frm_counter">8/8</em> </span> </div>
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">产地</strong>
              <p class="tips yz_left">（选填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" id="producer" name="producer" class="form_input limited">
              <em class="form_input_append frm_counter">24/24</em> </span> </div>
            
            
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">相关产品</strong>
              <p class="tips yz_left">（<a onclick="selectRelate('relation_text','')" class="" href="javascript:void()">选择</a>）</p>
              </label>
              <ul style="width:100%; clear:both" id="relation_text" class="list-dot">
                              </ul>
            </div> -->
           
              
              
              
            <div class="form_itme">
              <label class="form_label">
              <strong class="title yz_left">特色描述</strong>
              <p class="tips yz_left">（选填）</p>
              </label>
              <span class="form_input_box counter_in yz_clear">
              <input type="text" value="" name="good_remark" id="good_remark" class="form_input limited">
              <em class="form_input_append frm_counter">32/32</em> </span> </div>
              
              
           
                <div class="form_itme yz_clear">
              <label class="form_label">
              <strong class="title yz_left">介绍a</strong>
              <p class="tips yz_left">（选填）</p>
              </label>
              <span class="form_textarea_box yz_clear">
<!--
              <textarea name="description" max-length="120" id="description" class="form_textarea js_desc js_counter"></textarea>
-->
               <input type="text" name="good_brief" value="" id="good_brief" class="form_input limited"/>
               </span> </div>
              
              
              <div class="form_itme yz_clear" id="ruletable">
              	 <label class="form_label">
              <strong class="title yz_left">规格</strong>
              <a class='ttjson'>表格转json</a>
              <p class="tips yz_left">（选填）</p>
               <input type="text" value="0" name="stansum" id="stansum">
               <input type="text" value="" name="rulenameall" id="rulenameall">
              </label>
  <table id="ruletable" border="1" cellpadding="5" cellspacing=0>
				<tbody>
					<tr>
						<th>规格名称</th>
						<th>规格价格</th>
						<th>剩余库存</th>
						<th>重量（单位斤）</th>
						<th>&nbsp;</th>
					</tr>
					<tr>
											<td><input type="text" value=""  id="rulename" name="phone" size="10"></td>
											<td> <input type="text" value="" id="ruleprice" name="phone" size="5"></td>
											<td> <input type="text" value="" id="goodstock" name="phone" size="5"></td>
											<td><input type="text" value="" id="weight" name="phone" size="5"></td>
											<td><a class='bcs'>添加规格</a></td>
										</tr>
										
					
					
				</tbody>
			</table>
</div>
              
              
       
        </div>
        
        
        
        <div class="yz_right width540 fromblock" style="">
        	<!--
			<?php
				  var_dump($shoplist);
					  ?>-->
			
         
           
              
              
          
              
              <div class="controls">
									{$Think.cookie.__forward__}封面：
									<input type="file" id="upload_picture_test">
									<input type="hidden" name="cover_id" id="cover_id_name"/>
									
									
									<div class="yz_grid"> <strong id="showtitle"></strong>
              <div class="panel-footer clearfix"><span class="pull-right gray"></span> </div>
              <div class="imgholder">
              	<a id="backpic" class="bigpic" target="_blank" href="javascript:void()"></a>
                 </div>
              <div id="showinfo" class="info"></div>
            </div>
            
								</div>
								<script type="text/javascript">
								//上传图片
							    /* 初始化上传插件 */
								$("#upload_picture_test").uploadify({
							        "height"          : 30,
							        "swf"             : "__STATIC__/uploadify/uploadify.swf",
							        "fileObjName"     : "download",
							        "buttonText"      : "上传图片",
							        "uploader"        : "{:U('File/uploadPicture',array('session_id'=>session_id()))}",
							        "width"           : 120,
							        'removeTimeout'	  : 1,
							        'fileTypeExts'	  : '*.jpg; *.png; *.gif;',
							        "onUploadSuccess" : uploadPicturetest,
							        'onFallback' : function() {
							            alert('未检测到兼容版本的Flash.');
							        }
							    });
								function uploadPicturetest(file, data){
							    	var data = $.parseJSON(data);
							    	var src = '';
							        if(data.status){
							        	src = data.url || '__ROOT__' + data.path
							        	$("#backpic").html('<img src="' + src + '" />')
							        	$("#cover_id_name").val(data.id);
							        	//alert("aaaa");<img src="./Uploads/Picture/2015-08-08/55c609ff73a8b.jpg" />
							        	/*
										$("#cover_id_{$field.name}").val(data.id);
																				src = data.url || '__ROOT__' + data.path
																				$("#cover_id_{$field.name}").parent().find('.upload-img-box').html(
																					'<div class="upload-pre-item"><img src="' + src + '"/></div>'
																				);*/
										
							        } else {
							        	updateAlert(data.info);
							        	setTimeout(function(){
							                $('#top-alert').find('button').click();
							                $(that).removeClass('disabled').prop('disabled',false);
							            },1500);
							        }
							    }
								</script>
              
          
              
              
            <div class="form_itme yz_clear" id="pic" style="">
              <label class="form_label yz_clear">
              <strong class="title yz_left">详细说明</strong>
              <p class="tips yz_left">（自动保存：2015-04-10 22:59:39）</p>
              </label>
                               <label class="textarea">
                                <textarea name="good_desc" id="good_desc"></textarea>
                                {:hook('adminArticleEdit')}
                                </label>
              </div>
            
            <input type="hidden" id="islowed" value="" name="islow">
            <input type="hidden" id="ruleall" value="" name="ruleall">
            <input type="hidden" value="" name="id">
            
            <div class="yz_form_action">
<!--
              <button  id="testsub"  type="submit" target-form="form-horizontal" class="yz_btn  submit-btn ajax-post">a纭� 瀹�</button>
-->
              <button class="yz_btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
              <button onclick="javascript:history.back(-1);return false;" class="btn btn_default">返 回</button>
            </div>
          </form>
        </div>
        
        
        
        <div class="yz_clear"></div>
      </div>
      <div class="yz_clear"></div>
    </div>
    <div class="yz_clear"></div>
  </div>
  <div class="yz_clear"></div>
</div>
<div class="yz_clear"></div>
<link href="/shop/Public/artDialog/css/ui-dialog.css" rel="stylesheet">
<script src="/shop/Public/artDialog/js/dialog.js"></script> 
<script src="/shop/Public/artDialog/js/dialog-plus.js"></script> 


<script type="text/javascript">

/**

*action:add-添加,edit-修改

*id:添加为0，修改为当前修改的id

*cutpic:为剪切

*cutpicsrc:为剪切图片的路径

*getpicNum:为最终生成图片的数量

*scale:最终缩放的比列

*backdiv:最终返回给页面的值，id-type||

*example:yzupload('add',0,0,'',1,3,'300*133','900*500像素','a_0')

**/

function yzupload(action,id,max_file_count,max_file_size,chunk_size,resizewidth,resizeheight,backdiv){

	var arg="max_file_count:"+max_file_count+",max_file_size:'"+max_file_size+"',chunk_size:'"+chunk_size+"',resizewidth:"+resizewidth+",resizeheight:"+resizeheight+"";

	top.dialog({

			id: 'ajaxa-dialog',

			width:700,

			height:500,

			title:"多图上传",

			url: "/shop/admin.php?m=attachment&amp;a=yzuploadtpl&amp;arg="+arg+"&amp;appname=wechat",

			fixed:true,

			onclose: function () {

				if (this.returnValue) {

					if(backdiv.indexOf(",")&gt;=0){

						divarray=backdiv.split(",");

						for(var i=0;i&lt;divarray.length;i++){

							var divvalue=divarray[i].split("*");

							if(divvalue[1]==0){

							$("#"+divvalue[0]).attr('src',this.returnValue);

							}else if(divvalue[1]==1){

								$("#"+divvalue[0]).val(this.returnValue);

							}else{

								$("#"+divvalue[0]).html('&lt;img src="'+this.returnValue+'" /&gt;')

							}

						}

					}else{

						var divvalue=backdiv.split("*");

						if(divvalue[1]==0){

							$("#"+divvalue[0]).attr('src',this.returnValue);

						}else if(divvalue[1]==1){

							$("#"+divvalue[0]).val(this.returnValue);

						}else if(divvalue[1]==2){

							$("#"+divvalue[0]).addClass("haspic");

							$("#"+divvalue[0]).prepend('&lt;img src="'+this.returnValue+'" /&gt;')

						}else if(divvalue[1]==3){

							

							if((this.returnValue).indexOf(",")&gt;=0){

								var $resulthtml="";

								divarray1=(this.returnValue).split(",");

								

								for(var j=0;j&lt;divarray1.length;j++){

										$resulthtml+='&lt;span class="piclist"&gt;&lt;img src="'+divarray1[j]+'" /&gt;&lt;input type="hidden" name="pics[]" value="'+divarray1[j]+'"&gt;&lt;div class="picboxs_action"&gt;&lt;div class="delbtn"&gt;&lt;ul class="delul"&gt;&lt;li&gt; &lt;a class="delbtn" href="javascript:void()" title="删除"&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a class="editbtn" title="封面" href="javascript:void()" onClick="SetFristPic(\''+divarray1[j]+'\',\'backpic*2,uploadpic*2,pic*1\')"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;';

								}


								

							}else{

							$resulthtml='&lt;span class="piclist"&gt;&lt;img src="'+this.returnValue+'" /&gt;&lt;input type="hidden" name="pics[]" value="'+this.returnValue+'"&gt;&lt;div class="picboxs_action"&gt;&lt;div class="delbtn"&gt;&lt;ul class="delul"&gt;&lt;li&gt; &lt;a class="delbtn" href="javascript:void()" title="删除"&gt;&lt;/a&gt; &lt;/li&gt;&lt;li&gt; &lt;a class="editbtn" title="封面" href="javascript:void()" onClick="SetFristPic(\''+this.returnValue+'\',\'backpic*2,uploadpic*2,pic*1\')"&gt;&lt;/a&gt; &lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;';

							}

							$("."+divvalue[0]).prepend($resulthtml)

						}

					}

				}

			},

		}).showModal();

}


/**

*action:add-添加,edit-修改

*id:添加为0，修改为当前修改的id

*cutpic:为剪切

*cutpicsrc:为剪切图片的路径

*getpicNum:为最终生成图片的数量

*scale:最终缩放的比列

*backdiv:最终返回给页面的值，id-type||

*example:yzupload('add',0,0,'',1,3,'300*133','900*500像素','a_0')

**/

function selectRelate(backdiv,relation){

	$url="/shop/admin.php?m=public&amp;a=public_relationlist&amp;appname=Plugweimall&amp;relation="+relation+"";

	top.dialog({

			id: 'ajaxa-dialog',

			width:700,

			height:500,

			title:"多图上传",

			url: $url,

			fixed:true,

			onclose: function () {

				if (this.returnValue) {

					$("#"+backdiv).append(this.returnValue);

					

				}

			},

		}).showModal();

}
function remove_relation(id){

	$("#li"+id).remove();

}

/**

*action:add-添加,edit-修改

*id:添加为0，修改为当前修改的id

*cutpic:为剪切

*cutpicsrc:为剪切图片的路径

*getpicNum:为最终生成图片的数量

*scale:最终缩放的比列

*backdiv:最终返回给页面的值，id-type||

*example:yzupload('add',0,0,'',1,3,'300*133','900*500像素','a_0')

**/

function yzdelpic(action,backdiv){

	if(backdiv.indexOf(",")&gt;=0){

						divarray=backdiv.split(",");

						for(var i=0;i&lt;divarray.length;i++){

							var divvalue=divarray[i].split("*");

							if(divvalue[1]==0){

							$("#"+divvalue[0]).remove();

							}else if(divvalue[1]==1){

								$("#"+divvalue[0]).val("");

							}else{

								$("#"+divvalue[0]).html('');

							}

						}

					}else{

						var divvalue=backdiv.split("*");

						if(divvalue[1]==0){

							$("#"+divvalue[0]).remove();

						}else if(divvalue[1]==1){

							$("#"+divvalue[0]).val('');

						}else{

							$("#"+divvalue[0]).addClass("haspic");

							$("#"+divvalue[0]).html('')

						}

					}

}
</script> 
<script type="text/javascript">
function checktable(){
			
			//var34="333";			    
			// return var34;
			 var len=$('#ruletable tr').length;
 
//var aaa=$("ruletable tr td").eq(1).text();
//var aaa=$("#ruletable tr:eq(1) td:eq(1)").text();
var zj="";
if(len>2){
	zj="[";
	for (var i=2; i < len; i++) {
	  var aaa=$("#ruletable tr").eq(i).find("td").eq(0).text();
	  var bbb=$("#ruletable tr").eq(i).find("td").eq(1).text();
	  var ccc=$("#ruletable tr").eq(i).find("td").eq(2).text();
	  var ddd=$("#ruletable tr").eq(i).find("td").eq(3).text();
	  //zj=zj+"\{"+"rulename:'"+aaa+"',ruleprice:'"+bbb+"',rulestoce:'"+ccc+"\'},";
	 zj=zj+'{"rulename":"'+aaa+'","ruleprice":"'+bbb+'","rulestock":"'+ccc+'","weight":"'+ddd+'"},';
	  
	};
	zj=zj.substring(0,zj.length-1)+"]";
			 
			 }
			 return zj;
				}			    

$(function(){
	

	
// $("#testsub").click(function() {
	// alert("fff请增加规格");
		// return false; 
	// var abc=checktable();
	// if(abc){
		// $("#ruleall").attr("value",abc);
// 
// 		
	// }else{
		// alert("请增加规格");
		// return false;
	// }
// 	
		// return true;
// });

	$('#sidebar').portamento({

     wrapper: $('.picmsg')  // set #wrapper as the bottom boundary

      });
      
      $(".ttjson").click(function() {
         
 var data = " [ {name:'6101',value:'北京市',age:'11'}, {name:'6102',value:'天津市',age:'11'}, {name:'6103',value:'上海市',age:'22'}]"; 
 //$('#ruletable tr').append($tr);
 var len=$('#ruletable tr').length;
 
//var aaa=$("ruletable tr td").eq(1).text();
//var aaa=$("#ruletable tr:eq(1) td:eq(1)").text();
if(len<3){
	alert("tjgg"); 
}else{
	
	
	var zj="[";
	for (var i=2; i < len; i++) {
	  var aaa=$("#ruletable tr").eq(i).find("td").eq(0).text();
	  var bbb=$("#ruletable tr").eq(i).find("td").eq(1).text();
	  var ccc=$("#ruletable tr").eq(i).find("td").eq(2).text();
	  zj=zj+"\ {"+"rulename:'"+aaa+"',ruleprice:'"+bbb+"',rulestoce:'"+ccc+"\'},";
	 
	  
	};
	zj=zj.substring(0,zj.length-1)+"]"
	alert(zj);
	
}




         });

$(".bcs").click(function(){

	 	         var in_rulename=$('#rulename').val();
				 var in_ruleprice=$('#ruleprice').val();
				 var in_goodstock=$('#goodstock').val();
				 var in_weight=$('#weight').val();
				 var rulenameall=$('#rulenameall').val();
				 
				 var  in_ssum=parseInt($("#stansum").val());
			
				 
      if(in_rulename && in_ruleprice && in_goodstock && in_weight){
				
				$tr=$("<tr></tr>");						
				$name_td=$("<td></td>");
				$name_td.text(in_rulename);//"<td>规格名称</td>"												
				$price_td=$("<td></td>");
				$price_td.text(in_ruleprice);//"<td>价格</td>"
				$stock_td=$("<td></td>");
				$stock_td.text(in_goodstock);//"<td>库存</td>"				
				$weight_td=$("<td></td>");
				$weight_td.text(in_weight);//"<td>库存</td>"				
				
				$a_td=$("<td></td>");
				$myHref=$("<a></a>");
				$myHref.text("删除");
				$myHref.attr("href","#");
				$a_td.append($myHref);
							
				$tr.append($name_td);
				$tr.append($price_td);
				$tr.append($stock_td);
				$tr.append($weight_td);
				$tr.append($a_td);
			
				
				
				
				$myHref.click(function(){
					//如何显示用户名字，并且让用户选择是否真的删除用户
					//<a href='delEmpController.php?name=顺平'>删除</a>
					var b=window.confirm("你确定要删除？"+$(this).parent().parent().children().eq(0).text());
					
					if(b){
						$(this).parent().parent().remove();
						in_ssum=in_ssum-1
						$("#stansum").val(in_ssum);
						var  test=checktable()
				        $("#rulenameall").val(test);
						return false;
					}else{
						return false;
					}
				
				})
				// //$("#rulenameall").val(in_rulename+'11');
				// var all=$("#rulenameall").val();
				// if(all){
					 // $("#rulenameall").val(all+','+in_rulename);
				 // }else{
//  					
					 // $("#rulenameall").val(in_rulename);
				 // }
 				
				 
				in_ssum=in_ssum+1
                $("#stansum").val(in_ssum);
				$('#ruletable tbody').append($tr);
				
				$('#rulename').val('');
				$('#ruleprice').val('');
				$('#goodstock').val('');
				$('#weight').val('');
			
				
				$("#rulenameall").val('');
				var  test=checktable()
				$("#rulenameall").val(test);
				 }else{
					alert("请填写完整规格");
				 }
				
					
	});


	$("body").on('click',".picboxs_action a.delbtn",function(){
		$(this).parents(".piclist").remove();
	})

})

</script> 
<script src="__JS__/portamento.js"></script> 


</div>
</block>
